<html>
<head>
	<title>CS633 Group Project :: Team 1 :: Address Book</title>
	<link rel="stylesheet" href="css/style.css" type="text/css">
	<script type="text/javascript">
		function validate(frm)
		{
			if(frm.lname.value.trim().length == 0
				&& frm.lname.value.trim().length == 0
				&& frm.fname.value.trim().length == 0
				&& frm.address.value.trim().length == 0
				&& frm.city.value.trim().length == 0
				&& frm.state.value.trim().length == 0
				&& frm.zip.value.trim().length == 0
				&& frm.phone.value.trim().length == 0
				&& frm.email.value.trim().length == 0)
			{
				alert('Please provide at least one search parameter.');
				frm.lname.focus();
				return false;
			}
			return true;	
		}
	</script>
</head>
<body>
	<table width="100%">
		<!-- HEADER -->
		<tr style="padding:0px">
			<td><!--#include file ="header.asp"--></td>
		</tr>
		
		<!-- BODY -->
		<tr>
			<td align="center">
				<form name="SearchContacts" method="post" action="action_search.asp">
				<table bgcolor=#990000 width=1000 cellpadding=5 cellspacing=1 border=0>
					<tr class="header">
						<td colspan=2>Search Database
					<tr class="oddrow">
						<td width=200>Last Name
						<td><input type="text" name="lname" size=25>
					<tr class="evenrow">
						<td width=200>First Name
						<td><input type="text" name="fname" size=25>
					<tr class="oddrow">
						<td width=200>Address
						<td><input type="text" name="address" size=25>
					<tr class="evenrow">
						<td width=200>City
						<td><input type="text" name="city" size=25>
					<tr class="oddrow">
						<td width=200>State
						<td>
						
						<!--
						<input type="text" name="state" size=2>
						// -->
						
						<select name="state">
							<option value="" selected>---</option>
							<option value="AL">AL</option>
							<option value="AK">AK</option>
							<option value="AZ">AZ</option>
							<option value="AR">AR</option>
							<option value="CA">CA</option>
							<option value="CO">CO</option>
							<option value="CT">CT</option>
							<option value="DE">DE</option>
							<option value="DC">DC</option>
							<option value="FL">FL</option>
							<option value="GA">GA</option>
							<option value="HI">HI</option>
							<option value="ID">ID</option>
							<option value="IL">IL</option>
							<option value="IN">IN</option>
							<option value="IA">IA</option>
							<option value="KS">KS</option>
							<option value="KY">KY</option>
							<option value="LA">LA</option>
							<option value="ME">ME</option>
							<option value="MD">MD</option>
							<option value="MA">MA</option>
							<option value="MI">MI</option>
							<option value="MN">MN</option>
							<option value="MS">MS</option>
							<option value="MO">MO</option>
							<option value="MT">MT</option>
							<option value="NE">NE</option>
							<option value="NV">NV</option>
							<option value="NH">NH</option>
							<option value="NJ">NJ</option>
							<option value="NM">NM</option>
							<option value="NY">NY</option>
							<option value="NC">NC</option>
							<option value="ND">ND</option>
							<option value="OH">OH</option>
							<option value="OK">OK</option>
							<option value="OR">OR</option>
							<option value="PA">PA</option>
							<option value="RI">RI</option>
							<option value="SC">SC</option>
							<option value="SD">SD</option>
							<option value="TN">TN</option>
							<option value="TX">TX</option>
							<option value="UT">UT</option>
							<option value="VT">VT</option>
							<option value="VA">VA</option>
							<option value="WA">WA</option>
							<option value="WV">WV</option>
							<option value="WI">WI</option>
							<option value="WY">WY</option>
						</select>
					<tr class="evenrow">
						<td width=200>Zip
						<td><input type="text" name="zip" size=5>
					<tr class="oddrow">
						<td width=200>Phone
						<td><input type="text" name="phone" size=20>
					<tr class="evenrow">
						<td width=200>E-mail
						<td><input type="text" name="email" size=25>
					<tr class="oddrow">
						<td width=200>
						<td><input type="button" onclick="history.go(-1);" value="&lt&lt Back" />&nbsp;&nbsp;
						<input type="submit" value="Search" onclick="return validate(this.form);">&nbsp;&nbsp;	<input type="reset" value="Reset">
				</table>
				</form>
			</td>
		</tr>
		
		<!-- FOOTER -->
		<tr style="padding:0px">
			<td><!--#include file ="footer.asp"--></td>
		</tr>
	</table>	
</body>